package Demo03;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 28463
 * Date: 2022—05—14
 * Time: 19:40
 */

/*
    static class InnerClass{

    }
}
public class Test03 {
    public static void func() {
        class A{
            public void test(){
                System.out.println(100);
            }
        }
        A a = new A();
        a.test();
    }
    public static void main(String[] args) {
        func();

    }*/
class Person{
        public String name;
        public int age;

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                '}';
    }
}

public class Test03{
    public static void main(String[] args) {
        Person person = new Person();
        System.out.println(person);
    }
}
